package com.zsrt.java.day20161226.wrl.day161226.demo04;

public class Demo05 {
	public static void main(String[] args) {
		int result = funSum(10,20);
		System.out.println(result);
	}
	
	public static int funSum(int min,int max){
		int sum =0;
		for(int begin = min; begin <= max; begin++){
			sum = sum + begin;
		}
		return sum;
	}

}
